package com.ilongsay.controller;

import com.ilongsay.entity.AjaxObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author ilongsay
 * @Email ilongsay@163.com
 * @Copyright 版本所有，侵权必究！
 * @Datetime 2018-12-07 22:31
 * @Describution
 */
@Controller
@RequestMapping("test")
public class TestController {

    @RequestMapping(value = "/test",method = RequestMethod.POST)
    @ResponseBody
    public Object test() {

        AjaxObject ajaxObject = new AjaxObject();
        ajaxObject.setCode("0");
        return ajaxObject;
    }
}
